﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String userNameInfo = (String)request.getAttribute("UserNameInfo");
String passWordInfo = (String)request.getAttribute("PassWordInfo");
String loginInfo = (String)request.getAttribute("LoginInfo");
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>YOAO-CRM 用户登录</title>
<style type="text/css">
<!--
td {font-size:12px}
body {font-size:12px}
a {text-decoration:none;color:blue}
a:hover {text-decoration:underline;color:red}
table,tr,td.spacing {line-height:16px;}
-->
</style>
<link rel="stylesheet" type="text/css" href="<%=basePath%>regedit//mainstyles.css">
<SCRIPT  Language="Javascript"  SRC="<%=basePath%>regedit/public.js"></SCRIPT>
<script language="javascript">
if(parent.frames.length>1) top.location.href=location.href;
function login(){
	document.forms[0].submit();
}
function resetForm(){
	document.forms[0].reset();
	document.forms[0].userName.value = "";
	document.forms[0].passWord.value = "";
}
function openReg(){
	var v = window.showModalDialog("<%=basePath%>regedit", null, fnGetModalDialogStatus(540,350));
	//window.open("<%=basePath%>regedit", "", fnGetModalDialogStatus(280,220));
}
</script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<table border="0" width="100%" id="table1" height="100%" cellspacing="0" cellpadding="0">
	<tr>
		<td width="208" bgcolor="#BCD2EE" valign="top">
		<div align="center">
			<table border="0" width="98%" id="table5" height="39">
				<tr>
					<td height="40">
					<p align="center">
					<img border="0" src="<%=basePath%>regedit/logo.gif"/></td>
				</tr>
				<tr>
					<td>
					<i>&#8226;&nbsp;欢迎使用<span lang="en-us"> YOAO</span>-CRM系统<br>
					&#8226;&nbsp;请输入你的用户名和密码进行登录<br>
					&#8226;&nbsp;如果有疑问请和系统管理员联系</i><p>
					&#8226;&nbsp;<a href="#" onClick="openReg()">注册新用户</a><br>
					&#8226;&nbsp;援助中心:13120829887<br>
					&#8226;&nbsp;<a href="#"><font color="red">紫伟宸 2010-08-06</font></a>
					</td>
				</tr>
			</table>
		</div>
		</td>
		<td bgcolor="#2663AD" width="5">
		　</td>
		<td valign="top">
		<table border="0" width="100%" id="table6" cellspacing="0" cellpadding="0">
			<tr>
				<td height="43" bgcolor="#F5F5F5">
				<table border="0" width="100%" id="table10" cellspacing="0" cellpadding="0">
					<tr>
						<td>&nbsp;&nbsp; </td>
						<td width="757">
						<img border="0" src="<%=basePath%>regedit/title.gif" width="223" height="23">
						<i>
						<span lang="en-us">&nbsp; Ver:0.1 2010-08-01</span></i></td>
					</tr>
				</table>
				</td>
			</tr>
			<tr>
				<td valign="middle">　<p>　</td>
			</tr>
			<tr>
				<td valign="middle">
		<div align="center">
			<table border="0" width="487" id="table7" cellspacing="0" cellpadding="0" background="<%=basePath%>regedit/login_bg.gif" height="400">
				<tr>
					<td valign="top">
					<form id="loginForm" name="loginForm" action="<%=basePath%>login.crm?method=login" method="post">
						<table border="0" width="100%" id="table8" cellspacing="0" cellpadding="0" height="167">
							<tr>
								<td colspan="2" height="92"></td>
							</tr>
							<tr>
								<td width="38%" height="26"></td>
								<td width="62%" height="26">
									<input type="text" name="userName" size="20" style="BORDER:solid 0px;BACKGROUND-COLOR: transparent" value="weishion.yi"/>
									<span>&nbsp;&nbsp;<%=userNameInfo!=null?userNameInfo:"" %></span>
								</td>
							</tr>
							<tr>
								<td width="38%" height="23"></td>
								<td width="62%" height="23"></td>
							</tr>
							<tr>
								<td width="38%" height="25"></td>
								<td width="62%" height="25">
									<input type="password" name="passWord" size="20" style="BORDER:solid 0px;BACKGROUND-COLOR: transparent" value="password88"/>
									<span>&nbsp;&nbsp;&nbsp;&nbsp;<%=passWordInfo!=null?passWordInfo:"" %></span>
								</td>
							</tr>
							<tr>
								<td width="38%" height="35" align="right"></td>
								<td width="62%" height="60">
									<span><%=loginInfo!=null?loginInfo:"" %></span>
								</td>
							</tr>
							<tr><td height="20"></td></tr>
							<tr>
								<td width="100%" colspan="2">
								<table border="0" width="100%" id="table9" cellspacing="0" cellpadding="0">
									<tr>
										<td align="center" width="193">
										<p align="right">
										<input type="image" src="<%=basePath%>regedit/btn_ok.gif" width="96" height="35">
										</td>
										<td align="center">&nbsp;&nbsp;</td>
										<td align="center" width="189">
										<p align="left">
										<img border="0" src="<%=basePath%>regedit/btn_cl.gif" width="96" height="35" style="cursor:hand" onClick="resetForm()"></td>
									</tr>
								</table>
								</td>
								</tr>
						</table>
					</form>
					</td>
				</tr>
			</table>
		</div>
				</td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</body>
</html>